import request from '@/utils/request'
/**
 * @description 登录
 * @param {string, steing} data mobile password
 * @returns promise
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
/**
 * @description 获取用户信息
 * @returns promise
 */
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}

export function getInfo(token) {
}

export function logout() {
}
